home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- writeToFile()
- end
-
- on writeToFile
- global myFile, theLocation, finalPath
- if the platform = "Windows,32" then
- openXLib(the pathName & "XTRAS32\Fileio")
- else
- if the platform = "Windows,16" then
- openXLib(the pathName & "XTRAS16\Fileio")
- else
- openXLib(the pathName & "xtras:FileIOXtraFat")
- end if
- end if
- if objectp(myFile) then
- set myFile to 0
- end if
- set myFile to new(xtra("fileio"))
- setFilterMask(myFile, "ALL FILES, *.*, TEXT FILES, *.TXT")
- set theLocation to displayOpen(myFile)
- if not voidp(theLocation) then
- checkFile()
- else
- alert("You did not select your Email Program.")
- end if
- set myFile to 0
- end
-
- on checkFile
- global myFile, theLocation, finalPath
- if the platform = "Windows,32" then
- openXLib(the pathName & "XTRAS32\Fileio")
- else
- if the platform = "Windows,16" then
- openXLib(the pathName & "XTRAS16\Fileio")
- else
- openXLib(the pathName & "xtras:FileIOXtraFat")
- end if
- end if
- put theLocation
- put theLocation into field "emailSelect"
- if objectp(myFile) then
- set myFile to 0
- end if
- set myFile to new(xtra("fileio"))
- set gOSDir to getOSDirectory()
- set finalPath to gOSDir & "\"
- openFile(myFile, finalPath & "Prefs.TXT", 0)
- if status(myFile) = 0 then
- delete(myFile)
- closeFile(myFile)
- end if
- createFile(myFile, finalPath & "Prefs.TXT")
- openFile(myFile, finalPath & "Prefs.TXT", 0)
- writeString(myFile, field "cdDrive" & "," & field "browserSelect" & "," & field "pathToproj" & "," & field "emailSelect" & ",")
- getPrefThingy()
- loadBrowser()
- end
-